package com.ls.io.rpc.proxy;

import java.lang.reflect.Proxy;

public class ProxyFactory{

    public static <T>T createProxy(Class<T> clazz){
        return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class[]{clazz}, new RpcInvocationHandler(clazz));
    }

}
